package com.yxhl.km.module.login.entity;

import java.io.Serializable;
import java.util.List;

/**
 * Created by 张亚楠 on 2018/5/21.
 */

public class UserInfoBean implements Serializable{


    /**
     * success : true
     * data : {"menus":{"cellManager":false,"trailer":false,"driver":false,"groupManager":false},"user":{"id":"697d97cc97a9489fb4692a0decf76967","createTime":"2017-08-30 10:06:22","deleteFlag":1,"name":"农场司磅员-梧桐花","phone":"13400100212","level":0,"status":1,"farmId":"8287d983f3ad4277bc2f27e23d9861c7","userType":1,"companyFlag":3,"roleList":[{"id":"c1a967b75a37453aa0fd8bb591a716a1","createTime":"2017-06-09 14:30:05","deleteFlag":1,"name":"农场司磅员","num":"102","roleType":1}]}}
     */

    private boolean success;
    private DataBean data;

    public boolean isSuccess() {
        return success;
    }

    public void setSuccess(boolean success) {
        this.success = success;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public static class DataBean implements Serializable{
        /**
         * menus : {"cellManager":false,"trailer":false,"driver":false,"groupManager":false}
         * user : {"id":"697d97cc97a9489fb4692a0decf76967","createTime":"2017-08-30 10:06:22","deleteFlag":1,"name":"农场司磅员-梧桐花","phone":"13400100212","level":0,"status":1,"farmId":"8287d983f3ad4277bc2f27e23d9861c7","userType":1,"companyFlag":3,"roleList":[{"id":"c1a967b75a37453aa0fd8bb591a716a1","createTime":"2017-06-09 14:30:05","deleteFlag":1,"name":"农场司磅员","num":"102","roleType":1}]}
         */

        private MenusBean menus;
        private UserBean user;

        public MenusBean getMenus() {
            return menus;
        }

        public void setMenus(MenusBean menus) {
            this.menus = menus;
        }

        public UserBean getUser() {
            return user;
        }

        public void setUser(UserBean user) {
            this.user = user;
        }

        public static class MenusBean implements Serializable {
            /**
             * cellManager : false
             * trailer : false
             * driver : false
             * groupManager : false
             */

            private boolean cellManager;//库管
            private boolean trailer;//叉车
            private boolean driver;//司机
            private boolean groupManager;//车队长USER_TYPE_DRIVER =3是有效

            public boolean isCellManager() {
                return cellManager;
            }

            public void setCellManager(boolean cellManager) {
                this.cellManager = cellManager;
            }

            public boolean isTrailer() {
                return trailer;
            }

            public void setTrailer(boolean trailer) {
                this.trailer = trailer;
            }

            public boolean isDriver() {
                return driver;
            }

            public void setDriver(boolean driver) {
                this.driver = driver;
            }

            public boolean isGroupManager() {
                return groupManager;
            }

            public void setGroupManager(boolean groupManager) {
                this.groupManager = groupManager;
            }

            @Override
            public String toString() {
                return "MenusBean{" +
                        "cellManager=" + cellManager +
                        ", trailer=" + trailer +
                        ", driver=" + driver +
                        ", groupManager=" + groupManager +
                        '}';
            }
        }

        public static class UserBean implements Serializable {
            /**
             * id : 697d97cc97a9489fb4692a0decf76967
             * createTime : 2017-08-30 10:06:22
             * deleteFlag : 1
             * name : 农场司磅员-梧桐花
             * phone : 13400100212
             * level : 0
             * status : 1
             * farmId : 8287d983f3ad4277bc2f27e23d9861c7
             * userType : 1
             * companyFlag : 3
             * roleList : [{"id":"c1a967b75a37453aa0fd8bb591a716a1","createTime":"2017-06-09 14:30:05","deleteFlag":1,"name":"农场司磅员","num":"102","roleType":1}]
             */

            private String id;
            private String createTime;
            private int deleteFlag;
            private String name;
            private String phone;
            private int level;
            private int status;
            private String farmId;
            private int userType;
            private int companyFlag;
            private List<RoleListBean> roleList;

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public String getCreateTime() {
                return createTime;
            }

            public void setCreateTime(String createTime) {
                this.createTime = createTime;
            }

            public int getDeleteFlag() {
                return deleteFlag;
            }

            public void setDeleteFlag(int deleteFlag) {
                this.deleteFlag = deleteFlag;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getPhone() {
                return phone;
            }

            public void setPhone(String phone) {
                this.phone = phone;
            }

            public int getLevel() {
                return level;
            }

            public void setLevel(int level) {
                this.level = level;
            }

            public int getStatus() {
                return status;
            }

            public void setStatus(int status) {
                this.status = status;
            }

            public String getFarmId() {
                return farmId;
            }

            public void setFarmId(String farmId) {
                this.farmId = farmId;
            }

            public int getUserType() {
                return userType;
            }

            public void setUserType(int userType) {
                this.userType = userType;
            }

            public int getCompanyFlag() {
                return companyFlag;
            }

            public void setCompanyFlag(int companyFlag) {
                this.companyFlag = companyFlag;
            }

            public List<RoleListBean> getRoleList() {
                return roleList;
            }

            public void setRoleList(List<RoleListBean> roleList) {
                this.roleList = roleList;
            }

            public static class RoleListBean implements Serializable{
                /**
                 * id : c1a967b75a37453aa0fd8bb591a716a1
                 * createTime : 2017-06-09 14:30:05
                 * deleteFlag : 1
                 * name : 农场司磅员
                 * num : 102
                 * roleType : 1
                 */

                private String id;
                private String createTime;
                private int deleteFlag;
                private String name;
                private String num;
                private int roleType;

                public String getId() {
                    return id;
                }

                public void setId(String id) {
                    this.id = id;
                }

                public String getCreateTime() {
                    return createTime;
                }

                public void setCreateTime(String createTime) {
                    this.createTime = createTime;
                }

                public int getDeleteFlag() {
                    return deleteFlag;
                }

                public void setDeleteFlag(int deleteFlag) {
                    this.deleteFlag = deleteFlag;
                }

                public String getName() {
                    return name;
                }

                public void setName(String name) {
                    this.name = name;
                }

                public String getNum() {
                    return num;
                }

                public void setNum(String num) {
                    this.num = num;
                }

                public int getRoleType() {
                    return roleType;
                }

                public void setRoleType(int roleType) {
                    this.roleType = roleType;
                }

                @Override
                public String toString() {
                    return "RoleListBean{" +
                            "id='" + id + '\'' +
                            ", createTime='" + createTime + '\'' +
                            ", deleteFlag=" + deleteFlag +
                            ", name='" + name + '\'' +
                            ", num='" + num + '\'' +
                            ", roleType=" + roleType +
                            '}';
                }
            }

            @Override
            public String toString() {
                return "UserBean{" +
                        "id='" + id + '\'' +
                        ", createTime='" + createTime + '\'' +
                        ", deleteFlag=" + deleteFlag +
                        ", name='" + name + '\'' +
                        ", phone='" + phone + '\'' +
                        ", level=" + level +
                        ", status=" + status +
                        ", farmId='" + farmId + '\'' +
                        ", userType=" + userType +
                        ", companyFlag=" + companyFlag +
                        ", roleList=" + roleList +
                        '}';
            }
        }

        @Override
        public String toString() {
            return "DataBean{" +
                    "menus=" + menus +
                    ", user=" + user +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "UserInfoBean{" +
                "success=" + success +
                ", data=" + data +
                '}';
    }
}
